package com.open.companymessage.company.dao;

import com.open.capacity.common.model.CompanyActive;
import com.open.capacity.common.model.SysCompany;
import com.open.companymessage.company.vo.UserCompany;

import java.util.List;
import java.util.Map;

public interface CompanyDao {
    int addCompany(UserCompany userCompany);

    int updateCompany(SysCompany sysCompany);

    List<SysCompany> selectCompany(Map<String, Object> map);

    List<SysCompany> isHaveComName(String companyName);

    int deleteCompany(Long id);
//查询公司和活动关联的相关数据
    List<CompanyActive> selectCompanyActive(Map<String, Object> map);
//添加公司和活动关联的相关信息
    int insertCompanyID(CompanyActive companyActive);
//删除公司和活动关联的相关数据
    int deleteCompanyActiveId(CompanyActive companyActive);
}
